<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2020/7/28
  Time: 14:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>首页</title>
    <link rel="stylesheet" href="/static/css/bootstrap.min.css" type="text/css"/>
    <script type="text/javascript" src="/static/js/jquery-1.8.3.min.js"></script>

</head>
<body>

<form action="/yuzepeng/select" method="post" class="form-control">
    所属项目:<select name="projectId">
    <option value="0">全部</option>
    <option value="1">所属项目1</option>
    <option value="2">所属项目2</option>
    <option value="3">所属项目3</option>
    <option value="4">所属项目4</option>
    <option value="5">所属项目5</option>
</select>
    <input type="submit" value="查询">
</form>

<div class="table-responsive">
    <table class="table">
        <caption>BUG列表</caption>
        <thead>
        <tr>
            <th>BUG编号</th>
            <th>严重性</th>
            <th>标题</th>
            <th>报告人</th>
            <th>报告时间</th>
        </tr>
        </thead>

        <c:forEach items="${select}" var="detail">
            <tbody>
            <tr>
                <td>
                     <c:if test="${detail.projectId==1}"> <span>所属项目1</span></c:if>
                     <c:if test="${detail.projectId==2}"> <span>所属项目2</span></c:if>
                     <c:if test="${detail.projectId==3}"> <span>所属项目3</span></c:if>
                   <c:if test="${detail.projectId==4}"><span >所属项目4</span></c:if>
                    <c:if test="${detail.projectId==5}"> <span >所属项目5</span> </c:if>
                 </td>
                <td>${detail.severity}</td>
                <td>${detail.title}</td>
                <td>${detail.reportUser}</td>
                <td><fmt:formatDate value="${detail.createDate}" pattern="yyyy-MM-dd"></fmt:formatDate> </td>

                <td>
                <td><a href="/jsp/add.jsp" class="btn btn-danger">增加</a></td>
                </td>
            </tr>
            </tbody>
        </c:forEach>
    </table>
</div>



</body>
</html>
